<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:icefusion="http://icefusion.googlecode.com/icefusion"
    xmlns:m="http://code.google.com/p/gmaps4jsf/">
<body>
<ui:composition template="#{iceFusionConsts.templatePage}">
	<ui:define name="title">
		#{icecube['application.menu.presentation.googleMap']}
	</ui:define>
	<ui:define name="content">
		#{icecube['application.menu.presentation.googleMap.text']}
		<ice:gMap latitude="50.5001262" longitude="9.6912457" zoomLevel="16" type="Hybrid">
            <ice:gMapControl name="GLargeMapControl"/>
            <ice:gMapControl name="GScaleControl"/>
            <ice:gMapControl name="GMapTypeControl"/>
			<ice:gMapControl name="GOverviewMapControl"/>
			<ice:gMapMarker>
                <ice:gMapLatLng latitude="50.5001262" longitude="9.6912457"/>
            </ice:gMapMarker>
        </ice:gMap>
        <p/>
        #{icecube['application.menu.presentation.googleMap.gmaps4jsf.text']}
        <script>
            function closeInformationWindow() {
                alert("Thanks.");
            }
        </script>
        <ice:form>
            <m:map id="gmap" width="930" height="400" zoom="16"
                latitude="50.5001262" longitude="9.6912457"
                autoReshape="true" type="G_HYBRID_MAP" renderOnWindowLoad="false">
                <m:mapControl name="GLargeMapControl" position="G_ANCHOR_TOP_LEFT"/>
                <m:mapControl name="GScaleControl" position="G_ANCHOR_BOTTOM_LEFT" offsetWidth="70"/>
                <m:mapControl name="GMapTypeControl" position="G_ANCHOR_TOP_RIGHT"/>
                <m:mapControl name="GOverviewMapControl" position="G_ANCHOR_BOTTOM_RIGHT"/>
                <m:marker latitude="50.5001262" longitude="9.6912457"/>
                <m:htmlInformationWindow latitude="50.5001262" longitude="9.6912457" htmlText="Hello">
                    <m:eventListener eventName="closeclick" jsFunction="closeInformationWindow"/>
                </m:htmlInformationWindow>             
            </m:map>
        </ice:form>        
   	</ui:define>
</ui:composition>
</body>
</html>